<section class="content">
	<div class="nav-tabs-custom">
    <div class="tab-content">
    <h4 class="box-title">{{title}}</h4>
		<form name="form" ng-submit="save(m);" class="form-horizontal" style="margin-top: 20px;" novalidate>
			 <fieldset>
                  <div class="form-group">
                      <label class="col-sm-1 control-label">用户名称:</label>
                      <div class="col-sm-2">
                          <input class="form-control"  ng-model='m.name' type="text" required placeholder="请输入用户名称"/>
                      </div>
                       <label class="col-sm-1 control-label">登录账号:</label>
                      <div class="col-sm-2">
                          <input class="form-control"  ng-model='m.loginname' type="text" required placeholder="请输入登录账号"/>
                      </div>
                      <label class="col-sm-1 control-label">用户角色:</label>
                      <div class="col-sm-2">
                          <input class="form-control" required ng-model='m.role' type="text" required placeholder="请选择角色"/>
                      </div>
                  </div>
              </fieldset>
              <fieldset>
                  <div class="form-group">
                      <label class="col-sm-1 control-label">选择分组:</label>
                      <div class="col-sm-7">
                        <select select2 ng-model="m.groupId" class="form-control select2" multiple="multiple" data-placeholder="选择标签" style="width: 100%;" required>
              			  <option value="{{item.id}}" ng-repeat="item in groups">{{ item.name }}</option>
	          			</select>
                      </div>
                  </div>
              </fieldset>
			<div class="box-footer">
		        <button type="submit" class="btn btn-primary pull-right" ng-disabled="form.$invalid">确定</button>
		    </div>
		</form>
    </div>
  </div>
</section>

